export function getDate() {
    const dateObj = new Date()  
    const year = dateObj.getFullYear() + '' 
    const month = dateObj.getMonth() + 1 + '' 
    const date = dateObj.getDate() + ''   
    return year.padStart(2, '0') + '-' + month.padStart(2, '0') + '-' + date.padStart(2, '0')
  }
  export function getTime() {
    const dateObj = new Date() 
    const hour = dateObj.getHours() + '' 
    const minute = dateObj.getMinutes() + '' 
    const second = dateObj.getSeconds() + '' 
    return  hour.padStart(2, '0') + ':' + minute.padStart(2, '0') + ':' + second.padStart(2, '0')
  }
export  function getWeekDate() {
    var now = new Date();
    var day = now.getDay();
    var weeks = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
    var week = weeks[day];
    return week;
 }
 export function getTodayDate() {
  const dateObj = new Date()  
  const year = dateObj.getFullYear() + '' 
  const month = dateObj.getMonth() + 1 + '' 
  const date = dateObj.getDate() + ''  
  const hour = dateObj.getHours() + '' 
  const minute = dateObj.getMinutes() + '' 
  const second = dateObj.getSeconds() + '' 
  return year.padStart(2, '0') + '.' + month.padStart(2, '0') + '.' + date.padStart(2, '0')
}